var doc;
var win;
function formatCode(brushType){ 
	var rootFrame=document.getElementById('footbar-iSource');

	doc = rootFrame.contentDocument || rootFrame.contentWindow.document;
	doc = rootFrame.contentWindow.document;
	win= rootFrame.contentWindow.window

	try{
		 win.colorize(brushType);				
		}catch(e){
		alert(e);
	}	
}
